package cn.com.business.calculate;

public class SecondTwoCalculate extends AbstractCalculate {

	public SecondTwoCalculate(AbstractCalculate calculate) {
		super(calculate);
	}

	@Override
	public void calculate() {
		if ((super.getLeftIntegral() >= 27.5 * 500
				&& super.getRightIntegral() >= 27.5 * 500) || (super.getLeftIntegral() >= 19 * 500
						&& super.getRightIntegral() >= 36 * 500) || (super.getLeftIntegral() >= 36 * 500
								&& super.getRightIntegral() >= 19 * 500)) {
			super.setMoney(super.getMoney() + 1200);
			super.setCalculateProcess(6);
			super.next();
		}else{
			super.setDescription("结算第二轮第二阶段：左右美容院第一轮结算完剩余销售套数不足55套或者左右套数达不到比例的要求");
		}

	}

}
